package com.ugoodtech.mdcc.core.domain;

        /* Copyright (C) Ugoodtech, Inc - All Rights Reserved.
         * Unauthorized copying of this file, via any medium is strictly prohibited.
         * Proprietary and confidential.
         * Written by Stone Shaw.
         */

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;
import java.io.Serializable;


@ApiModel("用户操作日志")
@Entity
@Table(name = "user_log")
public class UserLog extends BaseEntity implements Serializable {
    @ApiModelProperty("用户模型")
    private User user;
    @ApiModelProperty("用户姓名")
    private String name;
    @ApiModelProperty("所属部门")
    private String departmentList;
    @ApiModelProperty("操作模块")
    private String operateModule;
    @ApiModelProperty("操作类型")
    private String operateType;
    @ApiModelProperty("业务类型")
    private String businessType;
    @ApiModelProperty("数据id")
    private Long operateDataId;
    @ApiModelProperty("数据描述")
    private String operateDesc;
    @ApiModelProperty("IP地址")
    private String operateIp;
    @ApiModelProperty("维修站编号")
    private String stationNo;
    @ApiModelProperty("维修站编号")
    private String stationName;
    @ApiModelProperty("报告ID")
    private Long reportId;
    @ApiModelProperty("报告类型")
    private String category;
    @ApiModelProperty("操作平台")
    private String platform;
    @ApiModelProperty("维修站")
    private Station station;


    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "user_id")
    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getDepartmentList() {
        return departmentList;
    }

    public void setDepartmentList(String departmentList) {
        this.departmentList = departmentList;
    }

    public String getOperateModule() {
        return operateModule;
    }

    public void setOperateModule(String operateModule) {
        this.operateModule = operateModule;
    }

    public String getOperateType() {
        return operateType;
    }

    public void setOperateType(String operateType) {
        this.operateType = operateType;
    }

    public Long getOperateDataId() {
        return operateDataId;
    }

    public void setOperateDataId(Long operateDataId) {
        this.operateDataId = operateDataId;
    }

    public String getOperateDesc() {
        return operateDesc;
    }

    public void setOperateDesc(String operateDesc) {
        this.operateDesc = operateDesc;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public String getOperateIp() {
        return operateIp;
    }

    public void setOperateIp(String operateIp) {
        this.operateIp = operateIp;
    }

    public String getStationNo() {
        return stationNo;
    }

    public void setStationNo(String stationNo) {
        this.stationNo = stationNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    @Column(name = "report_id")
    public Long getReportId() {
        return reportId;
    }

    public void setReportId(Long reportId) {
        this.reportId = reportId;
    }

    @Column(name = "category")
    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    @ManyToOne
    @JoinColumn(name = "station_id")
    public Station getStation() {
        return station;
    }

    public void setStation(Station station) {
        this.station = station;
    }
}
